
<% form_for(@user, :url => { :action => "update_user" }) do |f| %>
  <%= hidden_field_tag "user[id]", @user.id %>


  姓名:<input type="text" name="user[username]" value="<%=@user.username%>"><br /><br />
  邮箱:<input type="text" name="user[email]"  value="<%=@user.email%>"><br /><br />
        Q&nbsp;Q:<input type="text" name="user[qq]" value="<%=@user.qq%>"><br /><br />
  职业:<input type="text" name="user[perfession]" value="<%=@user.perfession%>"><br /><br />
  年龄:<input type="text" name="user[age]" value="<%=@user.age%>"><br /><br />
  性别:<input type="radio" name="user[gender]" value = "男" checked>男
               <input type="radio" name="user[gender]" value = "女" >女<br><br />
  婚否:<input type="radio" name="user[married]" value = "未婚" checked>未婚
                <input type="radio" name="user[married]" value = "已婚" >未婚
                <input type="radio" name="user[married]" value = "保密" >保密<br /><br />
  受教育程度:<select class="input_style"  name="user[edu_status]">
               <option value="ss">硕士</option>
               <option value="bk">本科</option>
               <option value="zk">专科</option>
               <option value="dz">大专</option>
               <option value="gz">高中</option>
               <option value="qt">高中以下</option>
          </select><br />

  <%= f.submit "修改" , :class=>"Button"%>

<% end %>
       
       
